<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/jquery-3.2.1.js"></script>
    <style>
        .current{
          color: red;
        }
    </style>
</head>
<body>
    <p>hello world</p>

   <script>
        $("p").click(function(){
            if($(this).hasClass("current")){
                $(this).removeClass("current");
            }
            else{
                $(this).addClass("current");
            }
        })
   </script>
</body>
</html>